package qldc.pm.tienan.searchcontainer;

import java.text.SimpleDateFormat;
import java.util.Date;

import javax.portlet.PortletRequest;

import com.liferay.portal.kernel.dao.search.DisplayTerms;
import com.liferay.portal.kernel.util.ParamUtil;

public class NguoiCoTienAnDisplayTerms extends DisplayTerms {
	public static final String SO_DINH_DANH_CA_NHAN = "soDinhDanhCaNhan";
	public static final String SO_CMND = "soCMND";
	public static final String SO_SO_HO_KHAU = "soSoHokhau";
	public static final String HO_VA_TEN = "hoVaTen";
	public static final String NOI_THUONG_TRU_TINH_ID = "noiThuongTruTinhId";
	public static final String NOI_THUONG_TRU_QUAN_HUYEN_ID = "noiThuongTruQuanHuyenId";
	public static final String NOI_THUONG_TRU_PHUONG_XA_ID = "noiThuongTruPhuongXaId";
	public static final String NOI_THUONG_TRU_DIA_CHI = "noiThuongTruDiaChi";
	public static final String TU_NGAY = "tuNgayPhamToi";
	public static final String DEN_NGAY = "denNgayPhamToi";
	public static final String NGAY_TOA_AN = "ngayToaAn";
	public static final String BAN_AN_SO = "banAnSo";
	public static final String TRANG_THAI = "trangThai";

	public static final String TU_NGAY_TOA_AN = "tuNgayToaAn";
	public static final String DEN_NGAY_TOA_AN = "denNgayToaAn";
	
	protected int trangThai;

	protected Date tuNgayToaAn;
	protected Date denNgayToaAn;
	protected Date tuNgayPhamToi;
	protected Date denNgayPhamToi;
	protected String soDinhDanhCaNhan;
	protected String soCMND;
	protected String soSoHokhau;
	protected String hoVaTen;
	protected long noiThuongTruTinhId;
	protected long noiThuongTruQuanHuyenId;
	protected long noiThuongTruPhuongXaId;
	protected String noiThuongTruDiaChi;
	protected Date ngayToaAn;
	protected String banAnSo;

	public NguoiCoTienAnDisplayTerms(PortletRequest portletRequest) {
		super(portletRequest);
		SimpleDateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy");
		tuNgayPhamToi = ParamUtil.getDate(portletRequest, TU_NGAY, dateFormat,
				null);
		denNgayPhamToi = ParamUtil.getDate(portletRequest, DEN_NGAY,
				dateFormat, null);
		soDinhDanhCaNhan = ParamUtil.getString(portletRequest, SO_DINH_DANH_CA_NHAN);
		soCMND = ParamUtil.getString(portletRequest, SO_CMND);
		soSoHokhau = ParamUtil.getString(portletRequest, SO_SO_HO_KHAU);
		hoVaTen = ParamUtil.getString(portletRequest, HO_VA_TEN);
		noiThuongTruTinhId = ParamUtil.getLong(portletRequest, NOI_THUONG_TRU_TINH_ID);
		noiThuongTruQuanHuyenId = ParamUtil.getLong(portletRequest, NOI_THUONG_TRU_QUAN_HUYEN_ID);
		noiThuongTruPhuongXaId = ParamUtil.getLong(portletRequest, NOI_THUONG_TRU_PHUONG_XA_ID);
		noiThuongTruDiaChi = ParamUtil.getString(portletRequest, NOI_THUONG_TRU_DIA_CHI);
		ngayToaAn = ParamUtil.getDate(portletRequest, NGAY_TOA_AN, dateFormat,
				null);
		banAnSo = ParamUtil.getString(portletRequest, BAN_AN_SO);
		trangThai = ParamUtil.getInteger(portletRequest, TRANG_THAI);
		tuNgayToaAn = ParamUtil.getDate(portletRequest, TU_NGAY_TOA_AN, dateFormat,
				null);
		denNgayToaAn = ParamUtil.getDate(portletRequest, DEN_NGAY_TOA_AN,
				dateFormat, null);
	}

	public Date getTuNgayToaAn() {
		return tuNgayToaAn;
	}

	public void setTuNgayToaAn(Date tuNgayToaAn) {
		this.tuNgayToaAn = tuNgayToaAn;
	}

	public Date getDenNgayToaAn() {
		return denNgayToaAn;
	}

	public void setDenNgayToaAn(Date denNgayToaAn) {
		this.denNgayToaAn = denNgayToaAn;
	}

	public int getTrangThai() {
		return trangThai;
	}

	public void setTrangThai(int trangThai) {
		this.trangThai = trangThai;
	}

	public Date getNgayToaAn() {
		return ngayToaAn;
	}

	public void setNgayToaAn(Date ngayToaAn) {
		this.ngayToaAn = ngayToaAn;
	}

	public String getBanAnSo() {
		return banAnSo;
	}

	public void setBanAnSo(String banAnSo) {
		this.banAnSo = banAnSo;
	}

	public String getSoDinhDanhCaNhan() {
		return soDinhDanhCaNhan;
	}

	public void setSoDinhDanhCaNhan(String soDinhDanhCaNhan) {
		this.soDinhDanhCaNhan = soDinhDanhCaNhan;
	}

	public String getSoCMND() {
		return soCMND;
	}

	public void setSoCMND(String soCMND) {
		this.soCMND = soCMND;
	}

	public String getSoSoHokhau() {
		return soSoHokhau;
	}

	public void setSoSoHokhau(String soSoHokhau) {
		this.soSoHokhau = soSoHokhau;
	}

	public String getHoVaTen() {
		return hoVaTen;
	}

	public void setHoVaTen(String hoVaTen) {
		this.hoVaTen = hoVaTen;
	}

	public long getNoiThuongTruTinhId() {
		return noiThuongTruTinhId;
	}

	public void setNoiThuongTruTinhId(long noiThuongTruTinhId) {
		this.noiThuongTruTinhId = noiThuongTruTinhId;
	}

	public long getNoiThuongTruQuanHuyenId() {
		return noiThuongTruQuanHuyenId;
	}

	public void setNoiThuongTruQuanHuyenId(long noiThuongTruQuanHuyenId) {
		this.noiThuongTruQuanHuyenId = noiThuongTruQuanHuyenId;
	}

	public long getNoiThuongTruPhuongXaId() {
		return noiThuongTruPhuongXaId;
	}

	public void setNoiThuongTruPhuongXaId(long noiThuongTruPhuongXaId) {
		this.noiThuongTruPhuongXaId = noiThuongTruPhuongXaId;
	}

	public String getNoiThuongTruDiaChi() {
		return noiThuongTruDiaChi;
	}

	public void setNoiThuongTruDiaChi(String noiThuongTruDiaChi) {
		this.noiThuongTruDiaChi = noiThuongTruDiaChi;
	}

	public Date getTuNgayPhamToi() {
		return tuNgayPhamToi;
	}

	public void setTuNgayPhamToi(Date tuNgayPhamToi) {
		this.tuNgayPhamToi = tuNgayPhamToi;
	}

	public Date getDenNgayPhamToi() {
		return denNgayPhamToi;
	}

	public void setDenNgayPhamToi(Date denNgayPhamToi) {
		this.denNgayPhamToi = denNgayPhamToi;
	}
}
